package com.lovo.ssc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单商品表
 * </p>
 *
 * @author lovo
 * @since 2022-07-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("orderGoods")
public class Ordergoods extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("orderId")
    @ApiModelProperty(value = "订单ID")
    private Integer orderid;

    @ApiModelProperty(value = "批次")
    private String batch;

    @ApiModelProperty(value = "规格")
    private String specs;

    @TableField("goodsName")
    @ApiModelProperty(value = "商品名")
    private String goodsname;

    @ApiModelProperty(value = "数量")
    private Integer num;

    @ApiModelProperty(value = "单价")
    private Float price;

    @ApiModelProperty(value = "类型")
    private String type;


}
